//
//  CMDBHttpManagerDelegate.swift
//  CMDB
//
//  Created by 王磊 on 17/4/5.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

protocol CMDBHttpManagerDelegate: NSObjectProtocol {
    
    func netWorkReachability(url: String) -> Bool
    
    // 获取token
    func queryToken() -> String
    // 请求
    func request(url: String,param: Dictionary<String,AnyObject>?,success: CMDBHttpSuccessHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler)
    
    func request(url: String,param: Dictionary<String,AnyObject>?,ownPage: Int,tableView: UITableView,success: CMDBHttpSuccessHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler)
}
